<?php
if ( !$this->user ) { 
	echo $this->form;
	if ( isset($this->loginResult) ) {
		foreach( $this->loginResult->getMessages() as $message ) {
			echo $message . "<br />";
		}
	}
?>
    <a href="<?= $this->url(array("controller"=>"user","action"=>"register")) ?>" title="<?=$this->translate('Register')?>"><?=$this->translate('Register')?></a>
<?php } else { ?>
	<a href="<?=$this->url(array("controller"=>"user-basket","action"=>"items-list"))?>" title="<?=$this->translate('Basket')?>"><?=$this->translate('Basket')?></a><br />
	<a href="<?=$this->url(array("controller"=>"orders","action"=>"user-orders"))?>" title="<?=$this->translate('Orders')?>"><?=$this->translate('Orders')?></a><br />
    <a href="<?=$this->url(array("controller"=>"user","action"=>"settings"))?>" title="<?=$this->translate('Settings')?>"><?=$this->translate('Settings')?></a><br/>
    <a href="<?=$this->url(array("controller"=>"user","action"=>"logout"))?>" title="<?=$this->translate('Logout')?>"><?=$this->translate('Logout')?></a><br/>	
<?php } ?>